public class Test {
    public static void main(String[] args) {
        Solution solution = new Solution();

        TreeNode root = new TreeNode(3,new TreeNode(4),new TreeNode(5));
        root.left.left = new TreeNode(1);
        root.left.right = new TreeNode(2);

        TreeNode SubRoot = new TreeNode(4,new TreeNode(1),new TreeNode(2));

        System.out.println(solution.isSubtree(root, SubRoot));
    }
}